cmake_minimum_required(VERSION 3.9)
project(opengl_OpenGLFunctions)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD 11)
set(QT Core Gui Widgets)
find_package(Qt5 REQUIRED ${QT})
file(GLOB HEADERS "*.h")
file(GLOB SOURCES "*.cpp")
add_executable(${PROJECT_NAME} ${HEADERS} ${SOURCES})
qt5_use_modules(${PROJECT_NAME} ${QT})
